/*
 *
 *  * Copyright (c) 2016. For Intelligent Group.
 *
 */

package com.intelligent.ispc.constant;

/**
 * Created by julia on 16/2/4.
 */
public final class AppConstant {
    private AppConstant() {
    }

    public static final String GLOBAL_SEPARATOR = " @#! ";
    public static final String GLOBAL_NAN = "NaN";
    public static final int EXPORT_IMG_WEIGHT = 600;
    public static final int EXPORT_IMG_HEIGHT = 220;

    public static final int ANALYSIS_SPC_DIGNUM = 6;
    public static final int ANALYSIS_GRR_DIGNUM = 4;

    public static final int DEFAULT_COUNT = 30;

    public static final int FIELD_TYPE_INPUT = 1;
    public static final int FIELD_TYPE_SINGLE = 2;
    public static final int FIELD_TYPE_MULTIPLE = 3;

    public static final String DATA_PARAM = "DATA_PARAM";
    public static final String DATA_INFO = "DATA_INFO";
    public static final String DATA_SEARCH_KEYS = "SEARCH_KEYS";
    public static final String DATA_ATTRIBUTE_KEYS = "ATTRIBUTE_KEYS";
    public static final String DATA_COLUMN_NAMES = "COLUMN_NAMES";
    public static final String FIELD = "FIELD";
    public static final String GLOBAL_USL = "USL";
    public static final String GLOBAL_LSL = "LSL";
    public static final String GLOBAL_UNIT = "UNIT";


    public static final String FILE_IMPORT_TYPE_SPC = "SPC";
    public static final String FILE_IMPORT_TYPE_GRR = "GRR";

    public static final String CHART_TYPE_SPC_ND = "NDC";
    public static final String CHART_TYPE_SPC_RUN = "RUNC";
    public static final String CHART_TYPE_SPC_XBAR = "XBARC";
    public static final String CHART_TYPE_SPC_SD = "SDC";
    public static final String CHART_TYPE_SPC_R = "RC";
    public static final String CHART_TYPE_SPC_MR = "MRC";
    public static final String CHART_TYPE_SPC_SCT = "SCATTER";

    public static final String CHART_TYPE_GRR_R = "R";
    public static final String CHART_TYPE_GRR_XBAR = "X-BAR";
    public static final String CHART_TYPE_GRR_RESPONSE = "ResponseByPart";
    public static final String CHART_TYPE_GRR_RESPONSE_OPERATOR = "ResponseByOperator";
    public static final String CHART_TYPE_GRR_CONTRIBUTION = "contribution";
    public static final String CHART_TYPE_GRR_INTERACTION = "Interaction";

    public static final String ANALYSIS_GRR_DATA = "GRR_DATA";
    public static final String ANALYSIS_GRR_PLOT = "GRR_PLOT";

    public static final String SPC_SEARCH_CHECKBOX_NAME = "LIKE";
    public static final String SPC_CONFIG_CPW = "CPW";
    public static final String SPC_CONFIG_CCW = "CCW";
    public static final String SPC_CONFIG_DIGIT = "DIGIT";

    public static final String GRR_MODEL_NORMAL = "NORMAL";
    public static final String GRR_MODEL_SLOT = "SLOT";

    public static final String GRR_FIRST_CHANGE_OPERATOR = "OPERATOR";
    public static final String GRR_FIRST_CHANGE_TRIAL = "TRIAL";

    public static final String[] SPC_TEST_DATA_TABLE_TITLE = new String[]{"", "Serial Number", "Usl", "Lsl", "UnitName", "Value", "Result"};

    public static final String[] GRR_SUMMARY_TB_TITLE = new String[]{"TestItem", "LSL", "USL", "Tolerance", "Part Variation", "Total Process Variation", "Gage R & R", "Result"};
    public static final String[] GRR_ANOVA_TB_TITLE = new String[]{"ANOVA", "DF", "SS", "MS", "F", "Prob>F"};
    public static final String[] GRR_SOURCE_TB_TITLE = new String[]{"Source", "Variation", "SIGMA", "XSIGMA", "Contribution", "Total Variation", "Tolerance"};

    public static final String GRR_ANOVA_VALUE = "anovaValue";
    public static final String GRR_SOURCE_VALUE = "sourceValue";

    public static final String GRR_ANOVA_APPRAISERS = "Appraisers";
    public static final String GRR_ANOVA_PARTS = "Parts";
    public static final String GRR_ANOVA_APPRAISERS_AND_PARTS = "Appraisers*Parts";
    public static final String GRR_ANOVA_GAGE = "Gage";
    public static final String GRR_ANOVA_TOTAL = "Total";

    public static final String GRR_SOURCE_REPEATABILITY = "Repeatability";
    public static final String GRR_SOURCE_REPRODUCIBILITY = "Reproducibility";
    public static final String GRR_SOURCE_APPRAISERS = "Appraisers";
    public static final String GRR_SOURCE_APPRAISERS_AND_PARTS = "Appraisers*Parts";
    public static final String GRR_SOURCE_GAGE_RR = "Gage R&R";
    public static final String GRR_SOURCE_PART = "Part";
    public static final String GRR_SOURCE_TOTAL = "Total";
    public static final String GRR_EXPORT_SUMMARY = "Summary";
    public static final String GRR_EXPORT_DATA_SOURCE = "data";

    public static final String SPC_ITEM_RADIO_ALL = "ALL";
    public static final String SPC_ITEM_RADIO_SELECT = "SELECT";
    public static final String SPC_ITEM_RADIO_UNSELECT = "UNSELECT";

    public static final String SYSTEM_CONFIG_SCRIPT_PATH = "SYSTEM_CONFIG_SCRIPT_PATH";
    public static final String SYSTEM_CONFIG_FIELD_PATH = "SYSTEM_CONFIG_FIELD_PATH";
    public static final String PATH_EXPORT = "export";
    public static final String PATH_SCRIPT = "pyscripts";
    public static final String PATH_SCRIPT_FILENAME = "CustomScript.py";
    public static final String PATH_IMPORT_SCRIPT_FILENAME = "DataImportScript.py";

    public static final String YIELD_EXPORT_SUMMARY = "yeild_show";

    public static final String LOG_PARSING_FILE_PARSING = "LOG_PARSING_FILE_PARSING";
    public static final String LOG_PARSING_FILE_PARSING_DONE = "LOG_PARSING_FILE_PARSING_DONE";
    public static final String LOG_PARSING_FILE_VALIDATE = "LOG_PARSING_FILE_VALIDATE";
    public static final String LOG_PARSING_FILE_VALIDATE_DONE = "LOG_PARSING_FILE_VALIDATE_DONE";
    public static final String LOG_PARSING_FILE_CONDITION = "LOG_PARSING_FILE_CONDITION";
    public static final String LOG_PARSING_FILE_CONDITION_DONE = "LOG_PARSING_FILE_CONDITION_DONE";
    public static final String LOG_PARSING_FILE_PARSING_ITEM = "LOG_PARSING_FILE_PARSING_ITEM";
    public static final String LOG_PARSING_FILE_PARSING_ITEM_DONE = "LOG_PARSING_FILE_PARSING_ITEM_DONE";
    public static final String LOG_PARSING_FILE_FINISH = "LOG_PARSING_FILE_FINISH";

    public static final String LOG_EXPORT_FILE_VALIDATE = "LOG_EXPORT_FILE_VALIDATE";
    public static final String LOG_EXPORT_FILE_VALIDATE_DONE = "LOG_EXPORT_FILE_VALIDATE_DONE";
    public static final String LOG_EXPORT_FILE_DISENV = "LOG_EXPORT_FILE_DISENV";
    public static final String LOG_EXPORT_FILE_CACHE = "LOG_EXPORT_FILE_CACHE";
    public static final String LOG_EXPORT_FILE_START_EXPORT = "LOG_EXPORT_FILE_START_EXPORT";
    public static final String LOG_EXPORT_FILE_CREATE_FILE = "LOG_EXPORT_FILE_CREATE_FILE";
    public static final String LOG_EXPORT_FILE_WRITE_DATA = "LOG_EXPORT_FILE_WRITE_DATA";
    public static final String LOG_EXPORT_FILE_WRITE_DONE = "LOG_EXPORT_FILE_WRITE_DONE";
    public static final String LOG_EXPORT_FILE_WRITE_EXCEL = "LOG_EXPORT_FILE_WRITE_EXCEL";
    public static final String LOG_EXPORT_FILE_WRITE_EXCEL_DONE = "LOG_EXPORT_FILE_WRITE_EXCEL_DONE";
    public static final String LOG_EXPORT_FILE_CLEAN_CACHE = "LOG_EXPORT_FILE_CLEAN_CACHE";
    public static final String LOG_EXPORT_FILE_CLEAN_CACHE_DONE = "LOG_EXPORT_FILE_CLEAN_CACHE_DONE";
    public static final String LOG_EXPORT_FILE_FINISH = "LOG_EXPORT_FILE_FINISH";
    public static final String LOG_EXPORT_FILE_FAIL = "LOG_EXPORT_FILE_FAIL";

    public static final String LOG_GRR_EXECUTE_VALIDATE = "LOG_GRR_EXECUTE_VALIDATE";
    public static final String LOG_GRR_EXECUTE_VALIDATE_DONE = "LOG_GRR_EXECUTE_VALIDATE_DONE";

    public static final String LOG_GRR_EXECUTE_VIEW_DATA = "LOG_GRR_EXECUTE_VIEW_DATA";
    public static final String LOG_GRR_EXECUTE_VIEW_DATA_DONE = "LOG_GRR_EXECUTE_VIEW_DATA_DONE";
    public static final String LOG_GRR_EXECUTE_SUMMARY = "LOG_GRR_EXECUTE_SUMMARY";
    public static final String LOG_GRR_EXECUTE_SUMMARY_DONE = "LOG_GRR_EXECUTE_SUMMARY_DONE";
    public static final String LOG_GRR_EXECUTE_FINISH = "LOG_GRR_EXECUTE_FINISH";

    public static final String LOG_GRR_EXECUTE_ITEM_DETAIL = "LOG_GRR_EXECUTE_ITEM_DETAIL";
    public static final String LOG_GRR_EXECUTE_ITEM_DETAIL_DONE = "LOG_GRR_EXECUTE_ITEM_DETAIL_DONE";
    public static final String LOG_GRR_EXECUTE_ANALYSIS = "LOG_GRR_EXECUTE_ANALYSIS";
    public static final String LOG_GRR_EXECUTE_ANALYSIS_DONE = "LOG_GRR_EXECUTE_ANALYSIS_DONE";
    public static final String LOG_GRR_EXECUTE_ANOVA_SOURCE = "LOG_GRR_EXECUTE_ANOVA_SOURCE";
    public static final String LOG_GRR_EXECUTE_ANOVA_SOURCE_DONE = "LOG_GRR_EXECUTE_ANOVA_SOURCE_DONE";
    public static final String LOG_GRR_EXECUTE_CHARTS = "LOG_GRR_EXECUTE_CHARTS";
    public static final String LOG_GRR_EXECUTE_CHARTS_DONE = "LOG_GRR_EXECUTE_CHARTS_DONE";

    public static final String LOG_GRR_UPDATE_PARAMETER_VALIDATE = "LOG_GRR_UPDATE_PARAMETER_VALIDATE";
    public static final String LOG_GRR_UPDATE_PARAMETER_VALIDATE_DONE = "LOG_GRR_EXECUTE_CHARTS_DONE";
    public static final String LOG_GRR_UPDATE_DATA = "LOG_GRR_UPDATE_DATA";
    public static final String LOG_GRR_UPDATE_DATA_DONE = "LOG_GRR_UPDATE_DATA_DONE";

    public static final String LOG_SPC_INITIAL_CONFIGUTATION = "LOG_SPC_INITIAL_CONFIGUTATION";
    public static final String LOG_SPC_INITIAL_CONFIGUTATION_DONE = "LOG_SPC_INITIAL_CONFIGUTATION_DONE";


}
